package base.day24;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class MyCharacterStream6 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw=new BufferedWriter(new FileWriter("E:\\java\\java project\\java-code\\b.txt"));

        bw.write("张三");
        char[] chars={'张','三','李','四','王','五'};
        bw.write(chars);
        bw.write(chars,0,3);

        String len="zhangsan";
        bw.write(len,0,4);

        bw.close();
    }
}
